<?php
namespace App\V3\V3_2_7\Models;

use Illuminate\Database\Eloquent\Model;
use DateTimeInterface;

/**
 * 审核列表
 * Class CheckModel
 * @package App\Models
 */
class CheckModel extends Model
{
    //常量定义
    public static $_TYPE_0 = 0; //0-报溢报损
    public static $_TYPE_1 = 1; //1-销售采购
    public static $_TYPE_2 = 2; //2-退换货
    public static $_TYPE_LIST = [0,1,2];

    protected $table = 'check';

    protected $dateFormat = 'U';//这个时间字段被为被格式化为UNIX 时间戳的形式存储
    //toArray 时间转换问题
    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
